<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title>添加权限</title>
	
    <link rel="stylesheet" href="${pageContext.request.contextPath}/css/main.css" media="all">
	<script src="${pageContext.request.contextPath}/lib/layui/layui.js" charset="utf-8"></script>
	<script src="${pageContext.request.contextPath}/js/x-layui.js" charset="utf-8"></script>
	
	<script>
	    layui.use(['form','layer'], function(){});
	</script>
	
	
</head>

<body>
<div class="x-body">
    <form action="" method="post" class="layui-form layui-form-pane" id="auth_groupadd">
        <input type="hidden" name="id" value=""/>
        <div class="layui-form-item">
            <label for="name" class="layui-form-label">
                <span class="x-red">*</span>角色名称
            </label>
            <div class="layui-input-inline">
                <input type="text" id="title" name="title"
                       class="layui-input" value="">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">状态</label>
            <div class="layui-input-block">
                <input type="radio" name="status" value="1" title="启用" checked="checked">
                <div class="layui-unselect layui-form-radio layui-form-radioed"><i class="layui-anim layui-icon layui-anim-scaleSpring"></i>
                    <div>启用</div>
                </div>
                <input type="radio" name="status" value="0" title="禁用" checked="checked">
                <div class="layui-unselect layui-form-radio"><i class="layui-anim layui-icon"></i>
                    <div>禁用</div>
                </div>


            </div>
        </div>
        <div class="layui-form-item layui-form-text">
            <label class="layui-form-label">
                拥有权限
            </label>
            <table  class="layui-table layui-input-block">
                <tbody>
                				
                <tr>
                    <td>
                        <div class="layui-input-block">
                            <input   name="rules[]" type="checkbox" value="4" dataid="id-4" class="checkbox-parent">
                            <span style="color: red;font-weight: bold;" >管理员管理</span>

                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        <div class="layui-input-block">
                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
							<input   name="rules[]" type="checkbox" value="5" dataid="id-4-5" class="checkbox-parentcheckbox-child">
                            <span>管理员列表</span>

                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        <div class="layui-input-block">
                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;                                        <input   name="rules[]" type="checkbox" value="6" dataid="id-4-5-6" class="checkbox-parentcheckbox-child">
                            <span>管理员添加</span>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        <div class="layui-input-block">
                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;                                        <input   name="rules[]" type="checkbox" value="7" dataid="id-4-5-7" class="checkbox-parentcheckbox-child">
                            <span>管理员删除</span>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        <div class="layui-input-block">
                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;                                        <input   name="rules[]" type="checkbox" value="8" dataid="id-4-5-8" class="checkbox-parentcheckbox-child">
                            <span>管理员修改</span>
                        </div>
                    </td>
                </tr>

                </tbody>
            </table>
        </div>
        <div class="layui-form-item">
            <button class="layui-btn" lay-submit="" lay-filter="add">保存</button>
        </div>
    </form>
</div>
</body>

</html>